// Project name:JavaRedis
// Creator:muhong
// Date time:2022/12/19,11:55 下午
// Name:ThrowableUtils

package org.gmh.util.internal;

public final class ThrowableUtil {
    private ThrowableUtil(){

    }

    public static <T extends Throwable> T unknownStackTrace(T cause, Class<?> clazz, String method){
        cause.setStackTrace(new StackTraceElement[]{new StackTraceElement(clazz.getName(), method, null, -1)});
        return cause;
    }
}
